#!/bin/sh
#generate tag file for lookupfile plugin
echo -e "!_TAG_FILE_SORTED\t2\t/2=foldcase/" > filenametag
find . -not -regex '.*\.\(png\|gif|zip|pdf|class|jar|so|apk|bin|o|cmd|ko|img\)' -type f ! -path "./out/*" ! -path "./RKDocs/*" ! -path "./RKTools/*" -printf "%f\t%p\t1\n" | sort -f >> filenametag

sed -e '/\.git/d' -e '/\.\/out/d' -e '/\.\/\.repo/d' -e '/\.\/rockdev/d' filenametag | tee filenametags
rm  filenametag

